package co.edu.javeriana.konigsberg.xavier.entidad;

import java.io.Serializable;

import javax.persistence.*;

import java.math.BigInteger;
import java.util.List;


/**
 * The persistent class for the facultad database table.
 * 
 */
@Entity
@Table(name="facultad")
@NamedQueries({
@NamedQuery(name="Facultad.findAll", query="SELECT f FROM Facultad f"),
@NamedQuery(name="Facultad.findByParent", query="SELECT f FROM Facultad f WHERE f.areagestion.idAreaGestion = :idAreaGestion")
})
public class Facultad implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private BigInteger idFacultad;

	@ManyToOne
	@JoinColumn(name="idAreaGestion")
	private Areagestion areagestion;

	private String nombreFacultad;

	public Facultad() {
	}

	public BigInteger getIdFacultad() {
		return this.idFacultad;
	}

	public void setIdFacultad(BigInteger idFacultad) {
		this.idFacultad = idFacultad;
	}

	public Areagestion getAreaGestion() {
		return this.areagestion;
	}

	public void setAreaGestion(Areagestion areagestion) {
		this.areagestion = areagestion;
	}

	public String getNombreFacultad() {
		return this.nombreFacultad;
	}

	public void setNombreFacultad(String nombreFacultad) {
		this.nombreFacultad = nombreFacultad;
	}

}